<?php

class IreadsController extends BaseController {

    function __construct($m = DEFAULT_CONTROLLER, $a = DEFAULT_METHOD) {
        parent::__construct($m, $a);

        /*
        $this->redirectToWeixinForOpenid();

        $this->load_hprose();
        $this->token = $this->get_UserCenterToken($this->openId());
        $this->accout = $_SESSION['userCenter']['id'];

        logger()->logInfo("meeting_session:".var_export($_SESSION, true));
        */
        $this->token = "9a6ac1b368b34719b3f28a4e5ca18138721f5ebde53f47588f70cf0d4fc5a186";
        //$this->accout = "";
    }

    function index() {
        require $this->template;
    }

    //会议列表
    function cardList() {
        $page = $this->request('page', 0);
        $this->load_hprose();
        $re = self::$hproseHttpClient->IndexController_pageTurn($this->token, 0, $page, 1);
        echo json_encode($re);
    }

    function detail() {
        require $this->template;
    }
}